import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';

/**
 * 轮播图分类
 */
@Entity('banner_category')
export class BannerCategoryEntity extends BaseEntity {
  @Index()
  @Column({ comment: '名称' })
  name: string;

  @Column({ comment: '排序值', default: 0 })
  orderValue: number;

  @Column({ comment: '状态', dict: ['禁用', '启用'], default: 1 })
  status: number;
}
